<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\Lists
 *
 * @property int $list_id
 * @property string $list_name
 * @property int $parentId
 * @property mixed|null $files_id
 * @property int $level
 * @method static \Illuminate\Database\Eloquent\Builder|Lists newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Lists newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Lists query()
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereFilesId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereLevel($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereListId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereListName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereParentId($value)
 * @property string $id
 * @property string $name
 * @property string|null $parent_id
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property string|null $deleted_time
 * @property string|null $created_time
 * @property mixed|null $children
 * @method static \Illuminate\Database\Eloquent\Builder|Lists onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereChildren($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereCreatedTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereDeletedTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists withTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|Lists withoutTrashed()
 * @property int $has_children
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereHasChildren($value)
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @property \Illuminate\Support\Carbon|null $created_at
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereDeletedAt($value)
 * @property int $root
 * @method static \Illuminate\Database\Eloquent\Builder|Lists whereRoot($value)
 * @mixin \Eloquent
 */
class Lists extends Model
{
    use HasFactory;
    use SoftDeletes;

    /**
     * @var false|mixed|string
     */
    public $children;
    protected $table = 'lists';
    protected $fillable = [
        'id',
        'name',
        'parent_id',
        'has_children',
        'root'
    ];
    protected $primaryKey = 'id';
    public $incrementing = false;
}
